package com.yuyou.tas.util.enums.lesson;

/**
 * Created by yujin.liu on 2018/5/18.
 */
public class LessonClassEnums {

    /**
     * 进度状态 0未开课 ；1开课中；2已完结
     */
    public enum status{
        init(0,"未开课"),opening(1,"开课中"),end(2,"已结课");
        status(int value,String name){
            this.value=value;
            this.name=name;
        }
        private int value;
        private String name;
        public int getValue() {
            return value;
        }
        public String getName() {
            return name;
        }
        public static String getNameByValue(int value){
        	for(status s:status.values()){
        		if(s.getValue()==value){
        			return s.getName();
        		}
        	}
        	return "";
        }
        

        
    }

    /**
     * 班级状态 0:未开班 1:已开班 2：已作废 3：已结课
     */
    public enum classStatus{
        init(0),opening(1),cancel(2),end(3);
        classStatus(int value){
            this.value=value;
        }
        private int value;
        public int getValue() {
            return value;
        }
    }
    

    
    
}
